package com.movie.dao;

import com.movie.beans.SysMenu;
import com.movie.beans.SysUser;

import java.util.List;

public interface UserDAO {

    /**
     * 更新用户
     * @Params [sysUser]
     * @return int
    */
    int updateUser(SysUser sysUser);

    /**
     * 根据userId查询用户
     * @Params [userId]
     * @return com.sdust.beans.SysUser
    */
    SysUser selectUserById(Long userId);

    int insert(SysUser sysUser);

    int remove(Long userId);

    List<SysUser> selectUserBySearchVal(String searchVal);

    SysUser selectUserByName(SysUser sysUser);
}
